package com.pinc.poop;

import java.io.File;

import android.preference.PreferenceManager;
import android.text.format.Time;

public abstract class PwdBaseWidgetActivity extends WidgetActivity {

	@Override
	protected void onResume() {
		super.onResume();
		settings = PreferenceManager.getDefaultSharedPreferences(this);
	}

	@Override
	protected void onPause() {
		super.onPause();
		File val_file = new File(this.getCacheDir(), validate.VALID_FILE_NAME);
		Time now = new Time();
		now.setToNow();

		if ( val_file.exists())
		{
			val_file.setLastModified(now.toMillis(true));
		}
	}
}
